package com.sky.service.user;

import com.sky.dto.ShoppingCartDTO;
import com.sky.pojo.ShoppingCart;

import java.util.List;

/**
 * @Description ShoppingCartService
 * @Author lijingtong
 * @Date 2024-10-13
 */
public interface ShoppingCartService {
    /**
     * 添加购物车
     * @param shoppingCartDTO
     */
    void add(ShoppingCartDTO shoppingCartDTO);

    /**
     * 查看购物车
     * @return
     */
    List<ShoppingCart> showShoppingCart();

    /**
     * 清空购物车
     */
    void cleanShoppingCart();

}
